import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import router from './router'
//引入elementui组件库
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/scss/config.scss'
//自定义插件
import plugins from './plugins'
//定义混入
import { mixin } from '@/mixin'
//vuex
import store from '@/store'
//自定义指令
import { permission } from '@/directive'
import Print from 'vue-print-nb'
import JsonExcel from 'vue-json-excel'

Vue.config.productionTip = false
Vue.use(VueRouter)
Vue.use(ElementUI)
Vue.use(plugins)
Vue.mixin(mixin)
Vue.directive('permission',permission)
Vue.use(Print)
Vue.component('downloadExcel', JsonExcel)

new Vue({
  render: h => h(App),
  router,
  store,
}).$mount('#app')
